package com.alibaba.yinan.domain.task.event;

import com.alibaba.yinan.domain.task.Task;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @ClassName TaskDomainEvent
 * @Author mengke
 * @create 2025/8/4 02:32
 * @Description
 */
@Getter
public class TaskDomainEvent extends ApplicationEvent {

    private final Task task;
    private final String eventType;

    public TaskDomainEvent(Task task, String eventType) {
        super(task);
        this.task = task;
        this.eventType = eventType;
    }
}